﻿@model IEnumerable<Content>
@using KuaJing.Portal.Cms.Domain

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
     
     <title>添加</title>
    <link href="//mvc-grid.azurewebsites.net/Content/Bootstrap/Bundle?v=Yuv2LW9ie1KJ1FI8k8L4mJeO-VQo_DYlHKpo5VQ67Co1" rel="stylesheet" />
    
    <link href="//mvc-grid.azurewebsites.net/Content/Shared/Bundle?v=uJn7Ne9a2qBjBrVbDP3b_6WXiUSSFrURxZEE16XMRcc1" rel="stylesheet" />
    <link href="~/Content/MvcGrid/mvc-grid.css" rel="stylesheet" />
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

    <!-- Optional theme -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">

    <script src="//libs.baidu.com/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>

    <!-- Latest compiled and minified JavaScript -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>

</head>
<body>
   <form role="form" method="post" action="@Request.RawUrl">
       
    <div class="container" style="background-color: white">
        <div class="row">
            <div class="col-md-12">
                <div class="row">
                    <div class="col-md-1">类型 </div>
                    <div class="col-md-9">
                        <select class="form-control" name="CategoryId">
  <option value="0">请选择</option>
                            @{string strSel = "";
                              IEnumerable<Category> lst =ViewData["Category"] as IEnumerable<Category>;
                              }
                            @foreach (Category cate in lst)
                            {
                                
  <option value="@cate.Id" @Html.Raw(strSel)>@cate.Name</option>
  
                            }
</select>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-1">名称 </div>
                    <div class="col-md-9">
                        <input type="text" class="form-control" id="Title" name="Title" value="@Html.Raw(ViewData["Title"])" placeholder="请输入名称">
                    </div>
                </div>
                 <div class="row">
                    <div class="col-md-1">内容 </div>
                    <div class="col-md-9">
                        <textarea class="form-control" id="CmsContent" name="CmsContent" placeholder="请输入内容" 
                             rows="3">@Html.Raw(ViewData["CmsContent"])</textarea>
                       
                    </div>
                </div>

                 <div class="row">
                    <div class="col-md-1">
                         <button type="submit" class="btn btn-primary">Submit</button>
                    </div>
                     </div>
            </div>
        </div>
    </div>
        </form>
</body>
</html>
